package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtCouponBatch;
import com.ymttest.database.model.YmtCouponProduct;
import com.ymttest.utils.EnvSetup;

public class YmtCouponProductWapper {
	 SqlManager manage;

	    public YmtCouponProductWapper() {
	        manage = new SqlManager("ymt" + EnvSetup.getEnv());
	    }
	    
	    public List<YmtCouponProduct> selectBysBatchId(Integer batchId) {
	        List<YmtCouponProduct> result = manage
	                .getSelectResults(
	                        "com.ymttest.database.mapping.YmtCouponProductMapper.selectBysBatchId",
	                        batchId);
	        return result;
	    }
	    
	    public List<YmtCouponProduct> selectTop1() {
	        List<YmtCouponProduct> result = manage
	                .getSelectResults(
	                        "com.ymttest.database.mapping.YmtCouponProductMapper.selectTop1",
	                        null);
	        return result;
	    }
}
